<template>
  <div v-if="floorList.length>0" class="bigbox">
   <div v-for="(item,index) in floorList" :key="index">
      <!-- 头部盒子 -->
  
      <img :src="item.headUrl" class="head" > 
    
    <!-- 商品盒子 -->
    <ul class="box"  >
      <li v-for="list in item.list" :key="list.title">
        <p >{{list.title}}</p>
        <p class="p1">{{list.desc}}</p>
        <!-- 图片盒子 -->
        <div class="tupian">
        <img :src="list.products[0].imgUrl">
        <img :src="list.products[1].imgUrl">
       </div>   
      </li> 
        
    </ul>
   </div>



  </div>
</template>

<script>
export default {
  name: "",
  props: {
    floorList: {
      type: Array,
      default: function() {
        return [];
      },
      require: true,
    },
    
  },
};
</script>

<style leng="scss" scoped>
.head{
  width: 100%;
  height:40px;
  background-color: #f6f6f6;
}
.bigbox{
  margin-bottom: 50px;
}
.box{
background-color: #f6f6f6;
display: flex;
flex-wrap: wrap;


}

p{
  margin: 0;
  padding: 0;
}

.p1{
  margin: 5px 0;
  font-size: 13px;
  color:#f63515
}

.box li{
  width: 44%;
  padding: 10px;
  background-color: white;
  border-bottom: 1px solid #ddd7d7;

}
ul{
  justify-content: space-around;
}
.tupian{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.tupian img{
  width: 65px;
  height: 65px;
}
</style>
